<script setup lang="ts">
import navBar from "./components/navBar/index.vue";
import { useUserStore } from "./store/user";
import { useSearchStore } from "./store/search";

const userStore = useUserStore();
const searchStore = useSearchStore();

// userStore.getUserInfo();
searchStore.getDictDatas();
</script>

<template>
  <router-view v-slot="{ Component }">
    <navBar />
    <transition>
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </transition>
  </router-view>
</template>

<style>
body {
  font-family:"Microsoft YaHei"!important
}
</style>
